#crud anjular js
Explore tagged Tumblr posts
semicoloncoder-blog · 7 years ago
Photo
Tumblr media
https://semicolon.codes/crud-angular-js-php-mysql/
CRUD Operations using Angular JS in PHP MYSQL (With Source Code)
CRUD Operations using Angular JS in PHP MYSQL Overview
CRUD means create , read ,update and delete. With Angular js and PHP MySQL, this project was developed to perform basic CRUD functionality. Here, you are allow to perform CRUD operations on the data below on the table and manage the data with different crud operations in the table.
In order to work, you need to first extract the zip into htdocs folder in xammp. After, create a web database in order to store the data from the website.You can use Xammp software which provides virtual local MySQL database. So, create a database in the phpmyadmin and name it ‘angular’.
Now after creating the database, perform following queries on the database you just created.
CREATE TABLE `members` ( `memid` int(11) NOT NULL AUTO_INCREMENT, `firstname` varchar(30) NOT NULL, `lastname` varchar(30) NOT NULL, `address` text NOT NULL, PRIMARY KEY(`memid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Reminder, this project uses CDN Bootstrap framework which only works online so check out for internet connection.
So, after the database process is finished. You need to start a localhost server. You can use Xammp. Just fire up the apache server and type ‘localhost/project_name’ in the browser.
Modules in the project:
Index.html : The main homepage of the project where we place all of the dependencies.
app.js : This is the main script made on angular js
memberService.js : This module handles the member and request.
homeController.js : The controller for the home.
addController.js : This module works as adding the data in html.
editController.js : This module is for editing the data.
deleteController.js : This module is for deleting the data.
home.html : Our main index view.
add.html : This consist of add form.
delete.html : This consist of delete form.
edit.html: This consist of edit form.
Download link of the project is below:
Download will be unlocked as soon as you complete small task below:
angularcrud.zip
9.31 KB
jQuery(function()jQuery('.link-btn a.wpdm-download-link img').after('<img class="lazy lazy-hidden" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-type="image" data-lazy-src="https://semicolon.codes/wp-content/plugins/wpdm-download-button/images/03.png" alt="" /><noscript><img class="lazy lazy-hidden" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-lazy-type="image" data-lazy-src="https://semicolon.codes/wp-content/plugins/wpdm-download-button/images/03.png" alt="" /><noscript><img src="https://semicolon.codes/wp-content/plugins/wpdm-download-button/images/03.png" alt="" />');jQuery('.link-btn a.wpdm-download-link img').remove(););
0 notes